<template>
	<div class="col-xs-offset-2 col-xs-8">
		<div class="page-header"><h2>React Router Demo</h2></div>
		<button @click="houtui">后退</button>
		<button @click="qianjin">前进</button>
	</div>
</template>

<script>
	export default {
		name:'Header',
		methods:{
			houtui(){
				console.log(this)
				this.$router.back()
			},
			qianjin(){
				this.$router.forward()
			}
		}
	}
</script>
